/* 
 * File:   m24128.h
 * Author: adamcsornyei
 *
 * Created on March 1, 2011, 8:30 AM
 */

#ifndef M24128_H
#define	M24128_H

#define lowByte(w) ((uint8_t) ((w) & 0xff))
#define highByte(w) ((uint8_t) ((w) >> 8))

#define EEPROM_ADDR 0xA8

uint8_t eeppromWriteByte(uint16_t, uint8_t);
uint8_t eepromWriteSeq(uint16_t, uint8_t*, uint8_t);
uint8_t eepromReadByte(uint16_t, uint8_t*);
uint8_t eepromReadSeq(uint16_t, uint8_t*, uint8_t);

#endif	/* M24128_H */

